<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <title>Runloop总结</title>
  
  <link href="../css/semantic/semantic.min.css" rel="stylesheet">
  <link href="../css/markdown.css" rel="stylesheet">
  <link href="../css/wtxynavigation.css" rel="stylesheet">
  <script src="../js/jquery.min.js"></script>
  <script type="text/javascript" src="../js/include.js"></script>
  
  <style>
    body{padding-top:0;background:#f7f7f7}
    body>.ui.container{width:100%;padding:0}
    #project-title{background:#6e6e6e;width:100%;line-height:3.572rem;color:#fff;font-size:1.2rem}
    #project-title .title-wrap{font-weight:700;padding:0 12px;width:100%;max-width:1366px!important;min-width:900px;margin:0 auto}
    #project-title .left,#project-title right{display:inline-block}
    #project-title .right{float:right}
    #project-title .right .wiki-actions .menu{left:auto;right:0;margin-top:.4em!important}
    #wiki-preview-container{width:100%;max-width:1366px!important;min-width:900px;padding:0;border:1px solid #e3e9ed;border-top:0}
    #wiki-preview>.ui.segment{margin-top:0;padding:1rem;padding-left:0;border:0}
    .hover-places{display:inline-block}
    #page-detail{width:60%;margin:0 auto}
    #page-detail .title{font-weight:700;font-size:24px;padding:12px 0;border-bottom:1px solid #ccc}
    #page-detail .content{margin-top:15px}
    .content p{word-wrap:break-word}
    #wiki-parent,#wiki-title,#wikis{display:none}
    .ui.grid{padding:0!important}
    #ex-all{cursor:pointer;color:#537c8d}
  </style>
</head>
<body>
  <div class="ui container">
    <div id="project-title">
      <div class="title-wrap">
        <div class="left">
          <i class="icon eye"></i>
          文档预览:
          mianmSDK
        </div>
        <div class="right">
          Export by Gitee
        </div>
      </div>
    </div>

    <div class="ui container" id="wiki-preview-container">
      <div id="wiki-preview">
        <div class="ui segment">
          <div id="page-detail" class="markdown-body">
            <div class='title'>36.Runloop总结</div><div class='content'><h1>
<a id="runloop是啥能干嘛" class="anchor" href="#runloop%E6%98%AF%E5%95%A5%E8%83%BD%E5%B9%B2%E5%98%9B"></a>Runloop是啥,能干嘛?</h1>
<ol>
<li>
<strong>Runloop</strong>是通过内部维护的<strong>事件循环</strong>来对<strong>事件/消息进行管理</strong>的一个<code>对象</code>.</li>
<li>能通过<strong>Runloop</strong>做常驻线程.</li>
<li>能通过观察<strong>Runloop</strong>状态做一些事情</li>
<li>能通过设置<strong>Runloop</strong>的<strong>mode</strong>调节<strong>timer</strong>运行</li>
<li>让一些耗时操作在用户滑动完界面后执行</li>
<li>
<code>UIImageView</code>的设置图片也可以选择相应的<strong>Runloop</strong>状态</li>
</ol>
<p><strong>关键词</strong>:</p>
<h2>
<a id="描述" class="anchor" href="#%E6%8F%8F%E8%BF%B0"></a>描述</h2>
<h3>
<a id="1" class="anchor" href="#1"></a>1.</h3>
<h1>
<a id="答" class="anchor" href="#%E7%AD%94"></a>答:</h1></div>
          </div>
        </div>
      </div>
      </div>
  </div>
</body>
</html>